package com.aruba.controller;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.aruba.handler.MyBlockHandler;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Demo4Controller {

    @RequestMapping("/test1")
    @SentinelResource(value = "test1")
    public String test1() {
        return "test1";
    }

}
